package com.yxc.easyexceldemo.exception;

/**
 * @author: YXC
 * @time: 2022/11/15 15:25
 **/
public class DateTimeFormatException extends RuntimeException {

    String convertData;

    String formatter;

    public DateTimeFormatException(String convertData, String formatter) {
        this.convertData = convertData;
        this.formatter = formatter;
    }

    @Override
    public String getMessage() {
        return "时间: (" + convertData + "), 格式错误(" + formatter + ")";
    }
}
